package view;

import javax.swing.BoxLayout;
import server.Server;

public class HomePageView extends ChessOnlineView{
	private static final long serialVersionUID = -6972334587222263846L;
	private LoginForm mLoginForm;
	
	public HomePageView(Server mainScreen) {
		super(mainScreen, null);
		
		mLoginForm = new LoginForm(mainScreen);
	
		setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		add(mLoginForm);
	}

	@Override
	public void onShow() {
		mLoginForm.onShow();
		super.onShow();
	}
	
	@Override
	public void onHide() {
		mLoginForm.onHide();
		super.onHide();
	}
	
	public LoginForm getLoginForm() {
		return mLoginForm;
	}

	public void setmLoginForm(LoginForm mLoginForm) {
		this.mLoginForm = mLoginForm;
	}	
}
